﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ClientView.aspx.cs" Inherits="ClientView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server" PostBackUrl="~/ClientEdit.aspx?m=liClient" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="ClientGirdView" CssClass="skineedgrid" runat="server" DataSourceID="ClientDS" AutoGenerateColumns="false" Width="75%"
        DataKeyNames="ClientID" AllowPaging="true" AllowSorting="true" PageSize="10">
        <Columns>
            <asp:BoundField DataField="RecordID" HeaderText="RecordID" Visible="False" />
            <asp:BoundField DataField="ID" HeaderText="ClientID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title" SortExpression="Name" />
            <asp:TemplateField>
                <ItemTemplate>
                   <a href="clienthistory.aspx?id=<%#Eval("ID") %>&m=liClient">Hitory</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>


    <asp:ObjectDataSource ID="ClientDS" runat="server" SelectMethod="GetClients" TypeName="DAL.DBManagers.ClientsManager" SortParameterName="sortBy"></asp:ObjectDataSource>
</asp:Content>

